<h1>Listing billing_accounts</h1>

<table>
  <tr>
    <th>id</th>
    <th>User</th>
    <th>Status</th>
    <th>Kind</th>
    <th>Customer profile</th>
    <th>Customer payment</th>
    <th>Card type</th>
    <th>Account primary</th>
    <th>Expires at month</th>
    <th>Expires at year</th>
    <th>Created at</th>
    <th>Updated at</th>
  </tr>

<% @billing_accounts.each do |billing_account| %>
  <tr>
    <td><%=h billing_account.id %></td>
    <td><%=h billing_account.user_id %></td>
    <td><%=h billing_account.status %></td>
    <td><%=h billing_account.kind %></td>
    <td><%=h billing_account.customer_profile_id %></td>
    <td><%=h billing_account.customer_payment_id %></td>
    <td><%=h billing_account.card_type %></td>
    <td><%=h billing_account.account_primary %></td>
    <td><%=h billing_account.expires_at_month %></td>
    <td><%=h billing_account.expires_at_year %></td>
    <td><%=h billing_account.created_at %></td>
    <td><%=h billing_account.updated_at %></td>
    <td><%= link_to 'Show', billing_account %></td>
    <td><%= link_to 'Edit', edit_billing_account_path(billing_account) %></td>
    <td><%= link_to 'Destroy', billing_account, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New billing_account', new_billing_account_path %>